<template>
  <div class="withdrawal-history">
    <div class="withdrawal-aq">
      <el-row>
        <el-col :span="1">
          <img src="" alt="Picture loading...">
        </el-col>
        <el-col :span="10">
          <div class="aq-left">
            <p class="aq-token">AQ (Anteque Token)</p>
            <p class="aq-tokal">Total Balance</p>
            <p class="aq-avai">Available</p>
            <p class="aq-avai">Frozen</p>
          </div>
        </el-col>
        <el-col :span="12">
          <div class="aq-right">
            <p class="aq-token">≈ USD 80,077.5300</p>
            <p class="aq-tokal">288,880.0000</p>
            <p class="aq-avai">88,880.0000</p>
            <p class="aq-avai">200,000.0000</p>
          </div>
        </el-col>
      </el-row>
    </div>
    <div class="withdrawal-code">
      <h2>WITHDRAWAL</h2>
      <div class="code-content">
        <ul>
          <li class="details">
            <span>To</span>
            <p>3FbVFfGprHg1p8Tq6JTEh5pzqWQ4w6147s</p>
          </li>
          <li class="details">
            <span>Amount</span>
            <p>10,000.88</p>
            <div>
              <p>Available Balance :</p>
              <span>80,077.5300 AQ</span>
            </div>
          </li>
          <li class="details">
            <span>Memo</span>
            <p>Test Test</p>
          </li>
          <li>
            <p>Transaction Fee : 0.1 AQ</p>
            <p>Recipient will get : 10,000.78 AQ</p>
          </li>
          <li>
            <el-button type="primary" @click="confirnClick">CONFIRM</el-button>
          </li>
        </ul>
      </div>
    </div>
    <el-dialog title="Google Authentication" :visible.sync="centerDialogVisible" width="50%" center>
      <div class="dialog-conten">
        <div>
          <img src="" alt="Picture loading...">
          <p>Input the 6-digit code in</p>
          <p>Google Authenticator Application</p>
        </div>
        <h2>Google Authentication Code</h2>
        <div class="code-input-main">
          <div class="code-input-main-item" v-for="item in 6" :key="item">{{code[item]}}</div>
          <input class="code-input-input" v-model="code" maxlength="6" type="number"/>
        </div>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      code: "",
      centerDialogVisible: false
    };
  },
  methods: {
    confirnClick() {
      this.centerDialogVisible = true;
    }
  }
};
</script>

<style lang="less" scoped>
.withdrawal-history {
  padding: 20px;
  .withdrawal-aq {
    padding-bottom: 30px;
    img {
      width: 25px;
      height: 25px;
      display: inline-block;
      vertical-align: middle;
    }
    .aq-token {
      color: #050505;
      font-size: 20px;
      display: inline-block;
      vertical-align: middle;
    }
    .aq-tokal {
      color: #f7cf4a;
      font-size: 18px;
      padding: 15px 0px;
    }
    .aq-avai {
      color: #bdbcbc;
      font-size: 16px;
      padding: 15px 0px;
    }
    .aq-right {
      text-align: right;
    }
  }
  .withdrawal-code {
    h2 {
      font-size: 30px;
      font-weight: normal;
    }
    .code-content {
      height: 450px;
      width: 100%;
      margin: 20px 0;
      border: 1px solid #ccc;
      padding: 30px 50px;
      border-radius: 20px;
      ul {
        li {
          font-size: 16px;
          p {
            font-weight: normal;
            line-height: 40px;
          }
          .el-button {
            width: 100%;
            margin-top: 20px;
          }
        }
        .details {
          border-bottom: 1px solid #cccccc;
          margin-bottom: 15px;
          span {
            color: #ccc;
            display: block;
          }
          p {
            display: inline-block;
          }
          div {
            display: inline-block;
            float: right;
            p {
              display: inline-block;
            }
            span {
              display: inline-block;
              color: #f7cf4a;
              padding-left: 10px;
            }
          }
        }
      }
    }
  }
  .dialog-conten {
    .code-input-input {
      height: 30px;
      position: absolute;
      width: 100%;
      outline: none;
      color: #f7cf4a;
      text-shadow: 0 0 0 #f7cf4a;
    //   width: 300%;
    //   margin-left: -100%;
    }
    .code-input-main {
      display: flex;
      flex-direction: row;
      justify-content: space-around;
    }

    .code-input-main-item {
      font-family: time-font-myself;
    //   width: 20px;
    //   height: 20px;
    //   opacity: 0.8;
      border-bottom: solid #ffffff 1px;
    //   margin: 0 1px;
      text-align: center;
      padding-bottom: 0;
      font-size: 30px;
      color: #fff;
    }
  }
}
</style>
